<?php
namespace app\appapi\controller;
use think\Controller;
use think\Request;
use think\Db;
use app\appapi\WeShare;
class Common extends Controller
{
    var $WxApp_User_Id;
    var $REQUEST;
    function _initialize(){
        judgeFilterSql();
        $this->REQUEST = Request::instance();
        $this->appCheckLogin();
    }
    public function appCheckLogin($value='')
    {
        $uid = cache('we_user_id');
        if(Db::name('user')->where(array('User_id'=>$uid))->value('User_id')){
            $this->WxApp_User_Id = $uid;
        }else{
            $this->WxApp_User_Id = '';
        }
    }
    // public function getWxconfig($val)
    // {
    //     $wxconfig = Config($val);
    //     return $wxconfig;
    // }
}

